package unit9_3.father;

public class father {
    String nick;//父类的属性和方法不要设置为私有
    int age;

    public father(){}


    public father(String nick, int age, String color, String type) {
        this.nick = nick;
        this.age = age;
        this.color = color;
        this.type = type;
    }

    String color;
    String type="国产";

    public void eat(){
        System.out.println("宠物在吃！！");
    }
    public void run(){
        System.out.println("宠物在跑！！");

    }
    public void father(){

    }
}
